<% remote_form_for @examen,:complete =>"$.colorbox.close()", :condition => '$(this).valid()', :html => {:class => "tabular"},  :builder => UniformBuilder do |f| %>
  <%= f.error_messages %>
  <div class="box">
      <%= f.hidden_field :usuario_id %>
      <%= f.collection_select :tipo_examen_id, TipoExamen.all,:id,:nombre, :label=>'Tipo estudio cl&iacute;nico'.html_safe,:class => :required  %>
      <%= f.text_field :fecha,:class=>"dp required",:size=>10%>
      <%= f.text_field :entidad %>
      <%= f.text_field :medico, :label=>'M&eacute;dico'%>
      <%= f.text_field :resultado %>
      <%= f.text_area :recomendacion, :rows => 5, :label=>'Recomendaci&oacute;n'.html_safe %>
      <%= f.check_box :apto %>
      <%= f.text_field :vencimiento, :label => "Vencimiento en meses" %>
    </div>
  <%= f.submit "Guardar" %>
<% end %>
<%=format_date_fields %>
<%= validate_forms %>